.search-section {
    position: relative;
}

.search-bar input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #ff6b81;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.suggestion-item:hover {
    background: #f8f9fa;
}/* 全局样式优化 */
:root {
    --primary-color: #ff4757;
    --secondary-color: #2d3436;
    --accent-color: #00b894;
    --light-gray: #f8f9fa;
    --text-color: #2d3436;
    --text-light: #636e72;
}

/* Hero Section 优化 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
}

.hero h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

/* 搜索部分优化 */
.search-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: -70px auto 40px;
    max-width: 800px;
    position: relative;
    z-index: 100;
}

.search-bar {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-bar input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
    outline: none;
}

.search-bar button {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar button:hover {
    background: #ff6b81;
    transform: translateY(-2px);
}

.search-bar button i {
    font-size: 18px;
}

/* 快捷功能区 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.quick-action-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.quick-action-item i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.quick-action-item h4 {
    margin: 10px 0;
    color: var(--text-color);
}

.quick-action-item p {
    color: var(--text-light);
    font-size: 0.9em;
}

/* 分类部分优化 */
.categories {
    padding: 60px 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1em;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.category-content {
    padding: 25px;
    position: relative;
}

.category-content h3 {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.category-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* 餐厅展示优化 */
.featured-restaurants {
    padding: 60px 0;
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.restaurant-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.restaurant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.restaurant-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.restaurant-info {
    padding: 25px;
}

.restaurant-name {
    font-size: 1.4em;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.restaurant-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.restaurant-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f1c40f;
    font-weight: 500;
}

.restaurant-cuisine {
    color: var(--primary-color);
    font-weight: 500;
}

.restaurant-tags {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-gray);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    color: var(--text-light);
}

.restaurant-delivery {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.delivery-time {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.delivery-fee {
    color: var(--accent-color);
    font-weight: 500;
}

/* 新增交互效果 */
button, .quick-action-item, .category-card, .restaurant-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover, .quick-action-item:hover, .category-card:hover, .restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 视觉优化 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
}

h1, h2, h3, h4 {
    color: var(--secondary-color);
}

/* 新增功能区 */
.testimonials {
    padding: 60px 0;
    background: var(--light-gray);
    text-align: center;
}

.testimonial {
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
    color: var(--text-light);
}

.newsletter {
    padding: 40px 0;
    background: #fff;
    text-align: center;
}

.newsletter input[type="email"] {
    padding: 10px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.newsletter button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.newsletter button:hover {
    background: #ff6b81;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .search-section {
        margin: -50px 20px 40px;
        padding: 20px;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar button {
        width: 100%;
        justify-content: center;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid,
    .restaurant-grid {
        grid-template-columns: 1fr;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #fff;
        --text-light: #a0a0a0;
        --light-gray: #2d2d2d;
    }

    body {
        background: #1a1a1a;
    }

    .search-section,
    .category-card,
    .restaurant-card,
    .quick-action-item {
        background: #2d2d2d;
    }

    .search-bar input {
        background: #3d3d3d;
        border-color: #4d4d4d;
        color: white;
    }

    .tag {
        background: #3d3d3d;
    }
}
